package com.aaa.sso.service;

import com.aaa.common.entity.Users;

/**
 * fileName:IUserService
 * description:
 * author:zz
 * createTime:2020/8/29 15:19
 * version:1.0.0
 */
public interface IUserService {


    /**
     * 用户认证
     * @param userName
     * @param passWord
     * @return
     */
    String  checkUserInfo(String userName,String passWord);

    /**
     * 验证用户的唯一识别是否正确
     * @param accessToken
     * @return
     */
    boolean  checkToken(String accessToken);


    /**
     * 根据accessToken获取用户信息
     * @param accessToken
     * @return
     */
    Users  getUserInfoByToken(String accessToken);


    /**
     * 用户退出
     * @param accessToken
     * @return
     */
    String  userLogOut(String accessToken);
}
